import http from './http.js'

// 列表
const ordersList = (pageNumber,pageSize,orderNo,orderStatus) => {
  return http.get('/orders',{
    params:{
      pageNumber,
      pageSize,
      orderNo,
      orderStatus
    }
  })
}

// 配货
const ordersCheckDone = (ids) => {
  return http.put(`/orders/checkDone`,{ids})
}

// 出库
const ordersCheckOut = (ids) => {
  return http.put(`/orders/checkOut`,{ids})
}

// 关闭订单
const ordersClose = (ids) => {
  return http.put(`/orders/close`,{ids})
}

export default {
  ordersList,
  ordersCheckDone,
  ordersCheckOut,
  ordersClose
}